﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.Paint.DefinePaintBrush.CApBrushConverter
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System;
using System.Globalization;
using System.Windows.Data;
using Tecnomatix.Engineering;


namespace DnProcessSimulateCommands.Paint.DefinePaintBrush;

internal class CApBrushConverter : IMultiValueConverter
{
  public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
  {
    bool flag = false;
    if (values != null && values.Length == 3)
    {
      ITxObject itxObject1 = values[0] as ITxObject;
      ITxObject itxObject2 = values[1] as ITxObject;
      string str = values[2] as string;
      flag = itxObject1 != null && itxObject2 != null && !string.IsNullOrEmpty(str);
    }
    return (object) flag;
  }

  public object[] ConvertBack(
    object value,
    Type[] targetTypes,
    object parameter,
    CultureInfo culture)
  {
    return (object[]) null;
  }
}
